import os
import datetime

# get -3 date from today

today = datetime.date.today()

today = datetime.datetime.today()
daysVal = datetime.timedelta(days=4)
theday = today - daysVal

print theday

month_str = str(theday.month)
day_str = str(theday.day)

# months manipulation
if len(month_str) == 1:
    month_str = "0" + month_str
else:
    month_str = month_str
  
# day manipulation
if len(day_str) == 1:
    day_str = "0" + day_str
else:
    day_str = day_str  

today_str = str(today.year) + month_str + day_str
tm_str = str(today.year) + month_str

print today_str


vFileName = "d:\\backup\\db\\"+today_str+".dmp"
vCommand = "del " + vFileName
os.system(vCommand) 